package com.eva.dao.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eva.dao.system.model.SystemRole;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    /**
     * 根据用户ID查询
     *
     * @param userId 用户ID
     * @return List<SystemRole>
     */
    List<SystemRole> selectByUserId(Integer userId);

}
